Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated. This causes a security issue in GitLab CE/EE affecting all versions starting from 13.2, allowing unauthorised authenticated users to execute arbitrary code on the server.
Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated. This causes a security issue in GitLab CE/EE affecting all versions starting from 13.2, allowing unauthorised authenticated users to execute arbitrary code on the server.
https://github.com/gettalong/kramdown/pull/708 https://github.com/gettalong/kramdown/commit/d6a1cbcb2caa2f8a70927f176070d126b2422760 https://about.gitlab.com/releases/2021/03/17/security-release-gitlab-13-9-4-released/ https://gitlab.com/gitlab-org/gitlab/-/issues/324452 https://gitlab.com/gitlab-org/gitlab/-/commit/179329b5c3c118924fb242dc449d06b4ed6ccb66